package p270jp.pxv.android.view;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import p014ae.View$OnClickListenerC0054c;
import p018ai.C0218e;
import p270jp.pxv.android.R;

/* renamed from: jp.pxv.android.view.BalloonView */
/* loaded from: classes2.dex */
public class BalloonView extends RelativeLayout {

    /* renamed from: a */
    public TextView f19453a;

    /* renamed from: b */
    public View f19454b;

    /* renamed from: c */
    public int f19455c;

    /* renamed from: d */
    public View.OnClickListener f19456d;

    public BalloonView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C0218e.f743a);
        this.f19455c = obtainStyledAttributes.getResourceId(0, R.layout.view_balloon);
        obtainStyledAttributes.recycle();
        View inflate = LayoutInflater.from(getContext()).inflate(this.f19455c, this);
        this.f19453a = (TextView) inflate.findViewById(R.id.text_view);
        View findViewById = inflate.findViewById(R.id.close_button);
        this.f19454b = findViewById;
        findViewById.setOnClickListener(new View$OnClickListenerC0054c(this, 26));
    }

    public void setOnCloseButtonClicked(View.OnClickListener onClickListener) {
        this.f19456d = onClickListener;
    }

    public void setText(CharSequence charSequence) {
        this.f19453a.setText(charSequence);
    }

    public void setText(int i) {
        this.f19453a.setText(i);
    }
}
